package com.lijie.ljblog.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "音乐列表",description = "")
@TableName("music")
@Data
public class Music implements Serializable,Cloneable{
    /**  */
    @ApiModelProperty(name = "",notes = "")
    @TableId(type = IdType.AUTO)
    private Integer id ;

    /** 音乐名字 */
    @ApiModelProperty(name = "",notes = "音乐名字")
    @TableField("musicname")
    private String name ;

    /** 作者 */
    @ApiModelProperty(name = "",notes = "作者")
    private String artist ;
    /** 下载地址 */
    @ApiModelProperty(name = "",notes = "下载地址")
    private String url ;
    /** 专辑封面地址 */
    @ApiModelProperty(name = "",notes = "专辑封面地址")
    private String cover ;
    /** 歌词 */
    @ApiModelProperty(name = "",notes = "歌词")
    private String lrc ;

    /** 歌词 */
    @ApiModelProperty(name = "",notes = "歌词")
    private Date createtime ;
    public Music (){
    }
    public Music (String musicname, String artist){
        this.name=musicname;
        this.artist=artist;
    }
}